package com.examination.client.util;

public class ExpressOrderNumRule {

    public static String OrderNumRuleToExpress(String str) {
        String express = "";
        if (str.contains("SF")) {
            express = "顺丰";
        } else if (str.contains("YT") || str.contains("G")) {
            express = "圆通";
        } else if (str.contains("JD")) {
            express = "京东";
        } else if (str.contains("JT")) {
            express = "极兔";
        } else if (str.contains("DPK")) {
            express = "德邦";
        } else if (str.contains("ZJS")) {
            express = "宅急送";
        } else if (str.length() == 15) {
            if (str.substring(0, 1).equals("3") || str.substring(0, 1).equals("4")) {
                express = "韵达";
            } else if (str.substring(0, 2).equals("55")) {
                express = "百世";
            } else if (str.substring(0, 2).equals("77")) {
                express = "申通";
            }
        } else if (str.length() == 14 && str.substring(0, 1).equals("7")) {
            express = "中通";
        } else if (str.length() == 13 && (str.substring(0, 1).equals("1") || str.substring(0, 1).equals("9") || str.substring(0, 1).equals("8"))) {
            express = "邮政";
        } else {
            if (str.substring(0, 1).equals("9")) {
                express = "优速";
            } else if (str.substring(0, 1).equals("6")) {
                express = "丹鸟";
            }
        }
        return express;
    }
}
